package com.example.friend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.friend.entity.DO.UserSubmitDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserSubmitMapper extends BaseMapper<UserSubmitDO> {
    /**
     * 查询当前用户提交结果
     * @param userId userId
     * @param examId examId
     * @param questionId questionId
     * @param currentTime currentTime
     * @return UserSubmitDO
     */
    UserSubmitDO selectCurrentUserSubmit(Long userId, Long examId, Long questionId, String currentTime);


    /**
     * 查询热门题目
     * @return List<questionId>
     */
    List<Long> selectHostQuestionList();
}
